package com.zd.common.common.enums;

public enum BmsRoleTypeEnum {
	Public_role(0, "公用角色"),
	Platform_role(1, "平台角色"),
	Scenic_role(2, "景区角色");
	
	private int key;
	private String value;

	private BmsRoleTypeEnum(int key, String value) {
		this.key = key;
		this.value = value;
	}

	public int getKey() {
		return key;
	}


	public void setKey(int key) {
		this.key = key;
	}


	public String getValue() {
		return value;
	}


	public void setValue(String value) {
		this.value = value;
	}


	public static BmsRoleTypeEnum get(int key) {
		for (BmsRoleTypeEnum bmsRoleType : BmsRoleTypeEnum.values()) {
			if (bmsRoleType.getKey() == key) {
				return bmsRoleType;
			}
		}
		return null;
	}
}
